package buildinjava.ant;

/**
 * Specifies a Guice NestedModule. Meant to be used as a child of the &lt;CreateInjector&gt; tag.
 *
 * @author Gili Tzbari
 */
public final class NestedModule
{
	private String name;

	/**
	 * Sets the module name.
	 * 
	 * @param name the module name
	 */
	public void setName(String name)
	{
		this.name = name;
	}

	/**
	 * Returns the module name.
	 * 
	 * @return the module name
	 */
	public String getName()
	{
		return name;
	}

	@Override
	public String toString()
	{
		return "Module[name=" + getName() + "]";
	}
}
